<div class="sidebar_detail">
	<div class="tab-header">
		<div class="title">
			<i class="fa fa-home"></i>修改线路
		</div>
		<div class="tool">
			<button type="button" class="btn btn-default" ng-click="updateSupport.save()"  ng-disabled="updateLineForm.$invalid">
				<i class="fa fa-outdent"></i>保存
			</button>
		</div>
	</div>
	<ul class="nav nav-tabs" role="tablist" style="clear: both">
		<li class="active"><a data-target="#lineBaseInfo" role="tab"
			data-toggle="tab">基本信息</a></li>
		<li><a data-target="#spotsLineInfo" role="tab" data-toggle="tab">景点</a></li>
	</ul>

	<!-- Tab panels -->
	<div class="tab-content">
		<!--此处存放各tab页div-->
		<div class="tab-pane active" id="lineBaseInfo">
			<form name="updateLineForm" novalidate>
				<!--与上传图片在同一行的内容 开始 -->
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-2 col-sm-2 control-label"><span class="notNull">*</span>线路名称:</label>
							<div class="col-md-10 col-sm-10">
								<input name="name" type="text" class="form-control" ng-model="updateSupport.entity.line.name" ng-maxlength="32" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="updateLineForm.name.$valid"></span>
								<span class="error_tips" ng-show="updateLineForm.name.$error.maxlength">最多不能超过32个字符！</span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span class="notNull">*</span>代码:
							</label>
							<div class="col-md-8 col-sm-10">
								<input name="code" type="text" class="form-control"  ng-model="updateSupport.entity.line.code" disabled>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"> <span class="notNull">*</span>类型:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="typeName" name="typeName" type="text" class="form-control" required>
								<input name="type" type=hidden class="form-control" ng-model="updateSupport.entity.line.type" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="updateLineForm.type.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label for="lineDescription" class="col-sm-2 control-label"><span class="notNull">*</span>描述:</label>
							<div class="col-sm-10">
								<textarea name="description"
									class="form-control" rows="10" placeholder="可以输入线路介绍等。"  ng-model="updateSupport.entity.line.description" ng-maxlength="300"></textarea>
								<span class="error_tips" ng-show="updateLineForm.description.$error.maxlength">最多不能超过600个字符！</span>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<!-- 	    引入 艺术信息 tab页 -->
		<div class="tab-pane" id="spotsLineInfo">
			<div class="generate_line">
				<div class="spots">
					<span class="text-primary lead">景点浏览</span>
					<div class="list">
						<ul>
							<li ng-repeat="item in updateSupport.bind.spots" ng-click="updateSupport.choiceFun(item.id)"><img
								src="{{ addSupport.cache.path + item.imagePath }}" alt="{{ item.name }}"
								desc="{{ item.desc }}" /></li>
						</ul>
					</div>
				</div>
				<div class="lines">
					<ul>
						<li ng-repeat="item in updateSupport.entity.spots">
							<a href="javascript:;" style="float: right;" ng-click="updateSupport.unChoiceFun(item.id)"><i class="fa fa-times"></i></a>
							<div class="context">
								<h3>{{ $index + 1 }},{{ item.name }}</h3>
								<hr />
								<p>{{ item.description }}</p>
								<hr />
							</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>